CC = gcc
SOURCES= $(wildcard ./*.c)
OBJECTS=$(SOURCES:.c=.o)
BINARIES=hellosdlgameframe
BINARIES_PATH=./bin
include_paths = -I../include
library_paths = -L../lib/SDL2_2.0.20 -L../lib/SDL2_image_2.0.5 -L../lib/SDL2_mixer_2.0.4 -L../lib/SDL2_ttf_2.20.0
compiler_flags = -mwindows
linker_flags = -lmingw32 -lSDL2main -lSDL2 -lSDL2_image -lSDL2_mixer -lSDL2_ttf
obj_name = bin/main
all: $(SOURCES)
	$(CC) $(SOURCES) $(include_paths) $(library_paths) $(compiler_flags)  $(linker_flags) -o $(BINARIES_PATH)/$(BINARIES)
.PHONY:clean
clean:
	$(RM) *.o $(BINARIES_PATH)/$(BINARIES)